package com.jobjoin.jobjoin.user.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author WinsomeCheong
 * @date 2021-04-19 11:52
 **/
@EnableTransactionManagement
@Configuration
@MapperScan("com.jobjoin.jobjoin.user.mapper")
public class UserServiceConfig {
    /**
     * 逻辑删除插件
     * @return
     */
    @Bean
    public ISqlInjector sqlIngector(){
        return new LogicSqlInjector();
    }
}
